<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>root.engine.SP.Schedule</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="root.engine-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >PYSF</th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        Package&nbsp;root ::
        <a href="root.engine-module.html">Package&nbsp;engine</a> ::
        <a href="root.engine.SP-module.html">Module&nbsp;SP</a> ::
        Class&nbsp;Schedule
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="root.engine.SP.Schedule-class.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class Schedule</h1><p class="nomargin-top"><span class="codelink"><a href="root.engine.SP-pysrc.html#Schedule">source&nbsp;code</a></span></p>
<center>
<center>  <map id="uml_class_diagram_for_root_eng_5" name="uml_class_diagram_for_root_eng_5">
<area shape="rect" id="node1_14" href="root.engine.SP.Schedule-class.html#__init__" title="x.__init__(...) initializes x; see x.__class__.__doc__ for signature" alt="" coords="17,39,308,57"/>
<area shape="rect" id="node1_15" href="root.engine.SP.Schedule-class.html#makeCopy" title="Make a brand new copy of the schedule" alt="" coords="17,57,308,76"/>
<area shape="rect" id="node1_16" href="root.engine.SP.Schedule-class.html#allocate" title="Returns: &#160;a new schedule with the jobs assigned" alt="" coords="17,76,308,95"/>
<area shape="rect" id="node1_17" href="root.engine.SP.Schedule-class.html#process" title="root.engine.SP.Schedule.process" alt="" coords="17,95,308,113"/>
<area shape="rect" id="node1_18" href="root.engine.SP.Schedule-class.html#addEvent" title="add an event to the schedule" alt="" coords="17,113,308,132"/>
<area shape="rect" id="node1_19" href="root.engine.SP.Schedule-class.html#getDelay" title="root.engine.SP.Schedule.getDelay" alt="" coords="17,132,308,151"/>
<area shape="rect" id="node1_20" href="root.engine.SP.Schedule-class.html#getDimension" title="root.engine.SP.Schedule.getDimension" alt="" coords="17,151,308,169"/>
<area shape="rect" id="node1_21" href="root.engine.SP.Schedule-class.html#slot" title="Returns: &#160;the point of time when a slot (any machine) will be available, that is, &#160;pick the machine whose last event will finish the earliest" alt="" coords="17,169,308,188"/>
<area shape="rect" id="node1_22" href="root.engine.SP.Schedule-class.html#isEnabled" title="Returns: &#160;if a job&#39;s preceding job is finished" alt="" coords="17,188,308,207"/>
<area shape="rect" id="node1_23" href="root.engine.SP.Schedule-class.html#isCompleted" title="Returns: &#160;if job is waiting (not in the schedule)" alt="" coords="17,207,308,225"/>
<area shape="rect" id="node1_24" href="root.engine.SP.Schedule-class.html#isIndependent" title="root.engine.SP.Schedule.isIndependent" alt="" coords="17,225,308,244"/>
<area shape="rect" id="node1_25" href="root.engine.SP.Schedule-class.html#isMachineReady" title="Returns: &#160;if a required machine of job &#160;is free." alt="" coords="17,244,308,263"/>
<area shape="rect" id="node1_26" href="root.engine.SP.Schedule-class.html#isGoal" title="Return True if a schedule is a goal: all jobs are finished" alt="" coords="17,263,308,281"/>
<area shape="rect" id="node1_27" href="root.engine.SP.Schedule-class.html#__cmp__" title="Compare two schedule by their scores" alt="" coords="17,300,308,319"/>
<area shape="rect" id="node1" href="root.engine.SP.Schedule-class.html" title="A schedule is made of M groups." alt="" coords="5,6,320,325"/>
</map>
  <img src="uml_class_diagram_for_root_eng_5.gif" alt='' usemap="#uml_class_diagram_for_root_eng_5" ismap="ismap" class="graph-without-title" />
</center>
</center>
<hr />
<p>A schedule is made of M groups. E</p>

<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Instance Methods</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-InstanceMethods"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="root.engine.SP.Schedule-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">clock</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">nj</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">nm</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">matrix</span>=<span class="summary-sig-default">None</span>)</span><br />
      x.__init__(...) initializes x; see x.__class__.__doc__ for signature</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="root.engine.SP-pysrc.html#Schedule.__init__">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="makeCopy"></a><span class="summary-sig-name">makeCopy</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Make a brand new copy of the schedule</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="root.engine.SP-pysrc.html#Schedule.makeCopy">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="root.engine.SP.Schedule-class.html#allocate" class="summary-sig-name">allocate</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">patch</span>)</span><br />
      Returns:
      a new schedule with the jobs assigned</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="root.engine.SP-pysrc.html#Schedule.allocate">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="process"></a><span class="summary-sig-name">process</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">tick</span>=<span class="summary-sig-default">None</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="root.engine.SP-pysrc.html#Schedule.process">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="root.engine.SP.Schedule-class.html#addEvent" class="summary-sig-name">addEvent</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">job</span>)</span><br />
      add an event to the schedule</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="root.engine.SP-pysrc.html#Schedule.addEvent">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="getDelay"></a><span class="summary-sig-name">getDelay</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">j</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="root.engine.SP-pysrc.html#Schedule.getDelay">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="getDimension"></a><span class="summary-sig-name">getDimension</span>(<span class="summary-sig-arg">self</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="root.engine.SP-pysrc.html#Schedule.getDimension">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="root.engine.SP.Schedule-class.html#slot" class="summary-sig-name">slot</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Returns:
      the point of time when a slot (any machine) will be available, that 
      is, pick the machine whose last event will finish the earliest</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="root.engine.SP-pysrc.html#Schedule.slot">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="root.engine.SP.Schedule-class.html#isEnabled" class="summary-sig-name">isEnabled</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">job</span>)</span><br />
      Returns:
      if a job's preceding job is finished</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="root.engine.SP-pysrc.html#Schedule.isEnabled">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type"><code>bool</code></span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="root.engine.SP.Schedule-class.html#isCompleted" class="summary-sig-name">isCompleted</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">job</span>)</span><br />
      Returns:
      if job is waiting (not in the schedule)</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="root.engine.SP-pysrc.html#Schedule.isCompleted">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="isIndependent"></a><span class="summary-sig-name">isIndependent</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">job</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="root.engine.SP-pysrc.html#Schedule.isIndependent">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="root.engine.SP.Schedule-class.html#isMachineReady" class="summary-sig-name">isMachineReady</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">job</span>)</span><br />
      Returns:
      if a required machine of job  is free.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="root.engine.SP-pysrc.html#Schedule.isMachineReady">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="isGoal"></a><span class="summary-sig-name">isGoal</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Return True if a schedule is a goal: all jobs are finished</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="root.engine.SP-pysrc.html#Schedule.isGoal">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="cost"></a><span class="summary-sig-name">cost</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Default cost function returns clock value</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="root.engine.SP-pysrc.html#Schedule.cost">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="heuristic"></a><span class="summary-sig-name">heuristic</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Default heuristic function return 0</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="root.engine.SP-pysrc.html#Schedule.heuristic">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="evaluation"></a><span class="summary-sig-name">evaluation</span>(<span class="summary-sig-arg">self</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="root.engine.SP-pysrc.html#Schedule.evaluation">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="root.engine.SP.Schedule-class.html#__repr__" class="summary-sig-name">__repr__</a>(<span class="summary-sig-arg">self</span>)</span><br />
      string representation of a schedule</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="root.engine.SP-pysrc.html#Schedule.__repr__">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="__cmp__"></a><span class="summary-sig-name">__cmp__</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">other</span>)</span><br />
      Compare two schedule by their scores</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="root.engine.SP-pysrc.html#Schedule.__cmp__">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__delattr__</code>,
      <code>__format__</code>,
      <code>__getattribute__</code>,
      <code>__hash__</code>,
      <code>__new__</code>,
      <code>__reduce__</code>,
      <code>__reduce_ex__</code>,
      <code>__setattr__</code>,
      <code>__sizeof__</code>,
      <code>__str__</code>,
      <code>__subclasshook__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== PROPERTIES ==================== -->
<a name="section-Properties"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Properties</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-Properties"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__class__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== METHOD DETAILS ==================== -->
<a name="section-MethodDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Method Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-MethodDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="__init__"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">clock</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">nj</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">nm</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">matrix</span>=<span class="sig-default">None</span>)</span>
    <br /><em class="fname">(Constructor)</em>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="root.engine.SP-pysrc.html#Schedule.__init__">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>x.__init__(...) initializes x; see x.__class__.__doc__ for 
  signature</p>
  <dl class="fields">
    <dt>Overrides:
        object.__init__
        <dd><em class="note">(inherited documentation)</em></dd>
    </dt>
  </dl>
</td></tr></table>
</div>
<a name="allocate"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">allocate</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">patch</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="root.engine.SP-pysrc.html#Schedule.allocate">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>patch</code></strong> - the set of jobs to be assigned</li>
    </ul></dd>
    <dt>Returns:</dt>
        <dd>a new schedule with the jobs assigned</dd>
  </dl>
</td></tr></table>
</div>
<a name="addEvent"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">addEvent</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">job</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="root.engine.SP-pysrc.html#Schedule.addEvent">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>add an event to the schedule</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>job</code></strong> - the job reference to create the event from clock time</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="slot"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">slot</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="root.engine.SP-pysrc.html#Schedule.slot">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  
  <dl class="fields">
    <dt>Returns:</dt>
        <dd>the point of time when a slot (any machine) will be available, 
          that is, pick the machine whose last event will finish the 
          earliest</dd>
  </dl>
</td></tr></table>
</div>
<a name="isEnabled"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">isEnabled</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">job</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="root.engine.SP-pysrc.html#Schedule.isEnabled">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  
  <dl class="fields">
    <dt>Returns:</dt>
        <dd>if a job's preceding job is finished</dd>
  </dl>
</td></tr></table>
</div>
<a name="isCompleted"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">isCompleted</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">job</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="root.engine.SP-pysrc.html#Schedule.isCompleted">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  
  <dl class="fields">
    <dt>Returns: <code>bool</code></dt>
        <dd>if job is waiting (not in the schedule)</dd>
  </dl>
</td></tr></table>
</div>
<a name="isMachineReady"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">isMachineReady</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">job</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="root.engine.SP-pysrc.html#Schedule.isMachineReady">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  
  <dl class="fields">
    <dt>Returns:</dt>
        <dd>if a required machine of job  is free. the machine is free when 
          its group is None or last event has finished</dd>
  </dl>
</td></tr></table>
</div>
<a name="__repr__"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__repr__</span>(<span class="sig-arg">self</span>)</span>
    <br /><em class="fname">(Representation operator)</em>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="root.engine.SP-pysrc.html#Schedule.__repr__">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>string representation of a schedule</p>
  <dl class="fields">
    <dt>Overrides:
        object.__repr__
    </dt>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="root.engine-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >PYSF</th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Mon Dec 12 17:50:56 2011
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
